package com.hxh.demo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2023/7/5 21:43
 */
@Controller
@ResponseBody
@RequestMapping("/student")
@Slf4j
public class StudentController {

    // 打印日志
    @RequestMapping("/hi")
    public String sayHi() {
        log.error("这是通过 lombok 打印的日志信息~");
        return "hi";
    }
}
